//
//  UserModel.swift
//  JLDiaryApp
//
//  Created by Jiang Chencheng on 2024/9/28.
//

import Foundation
import SwiftData


struct UserModel: Codable {
    
    let id: UUID
    let nickname: String?
    let email: String?
    let mood: Mood?
    var pairCode: String?
    
}

extension UserModel: Storable {
    static var key: String {
        "kJLUserKey"
    }
}

extension UserModel: JSONDataConvertiable { }
